﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Entities;

namespace DataAccess
{
    public class SupplierData
    {
        public IEnumerable<Supplier> AllSupplier()
        {
            ShoppingCardDataContext ctx = new ShoppingCardDataContext();
            IEnumerable<Supplier> list = from s in ctx.Suppliers
                                         select s;
            return list;
        }
    }
}
